package muxwstemplate

import "log"

type Logger interface {
	Infof(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

type DefaultLogger struct {
}

var muxWSLogger Logger = &DefaultLogger{}

func SetLogger(logger Logger) {
	muxWSLogger = logger
}

func (*DefaultLogger) Infof(format string, args ...interface{}) {
	log.Printf("[INFO] "+format, args...)
}
func (*DefaultLogger) Errorf(format string, args ...interface{}) {
	log.Printf("[Error] "+format, args...)
}
